exports.genByRatio = (ratio) => {
    return Math.random() < ratio ? true : false
}